<script type="text/javascript" src="${base}/scripts/tool/pinyin.js"></script>
<script type="text/javascript" src="${base}/scripts/sfgl/fksh_content.js"></script>

<form id="form_fksh" action="${base}/sfgl/fksh/fksh" method="post">
    <input id="fksh_id" name="fksh.id" type="hidden" value="${(fksh.id)!''}"/>
    <input name="fksh.zt" type="hidden" value="${(fksh.zt)!''}"/>
    <div class="easyui-tabs">
        <div title="基本信息">
        <table style="width:100%" class="tb tab-t">
        <col width="20%"/><col width="23%"/><col width="22.5%"/><col width="34.5%"/>
        <tr>
            <th>单&nbsp;据&nbsp;&nbsp;号：</th>
            <td colspan="3">
                <input id="fksh_bm" name="fksh.bm" type="hidden" class="input-text readonly"
                       style="width:493px;background-color:#F8F8FF;font-weight: bold"
                       readonly="readonly" value="${(fksh.bm)!}"/>
                <span>${(fksh.bm)!}</span>
            </td>
        </tr>
        <tr>
            <th style="color:#f45212;">付款类型：</th>
            <td>
                <label><input name="fksh.sfklx" type="radio" value="1" checked="checked" required="true"
                              style="vertical-align: middle;"/>&nbsp;供应付款</label>
                <label><input name="fksh.sfklx" type="radio" value="2" required="true"
                              <#if (fksh.sfklx)?? && fksh.sfklx==2>checked</#if> style="vertical-align: middle;"/>&nbsp;销售退款 </label>
            </td>
            <th style="color:#f45212;"> 票据类型：</th>
            <td>
                <input idVal="fksh_pjlx_id" name="fksh.pjlx.id" class="input-text" type="text"
                       required="true" value="${(fksh.pjlx.id)!''}"/>
            </td>
        </tr>
        <tr>
            <th style="color:#f45212;">
                <span id="fksh_gys" style="display: block;">供&nbsp;应&nbsp;&nbsp;商：</span>
                <span id="fksh_kh"  style="display: none;">客户名称：</span>
            </th>
            <td>
                <input id="fksh_gldw_id" name="fksh.gldw.id" type="text" value="${(fksh.gldw.id)!''}" class="easyui-combobox input-text"
                       required="true" style="width:626px;"  data-options="valueField:'id',textField:'jc',panelHeight:'200'" />
            </td>
        </tr>
        <tr>
            <th style="color:#f45212;">款项类型：</th>
            <td>
                <span id ="fklx3" style="display: none;">
                <label><input name="fksh.kxlx" type="radio" value="3" checked="checked"
                              style="vertical-align: middle;" />预&nbsp; &nbsp;收&nbsp; &nbsp;款</label>
                </span>
                <span id ="fklx4" style="display: none;">
                    <label><input name="fksh.kxlx" type="radio" value="4"
                                  <#if (fksh.kxlx)?? && fksh.kxlx==4>checked</#if> style="vertical-align: middle;"/>应&nbsp; &nbsp;收&nbsp; &nbsp;款 </label>
                </span>
                <span id ="fklx1" style="display: inline;" >
                    <label><input name="fksh.kxlx" type="radio" value="1" checked="checked"
                                  style="vertical-align: middle;" />预&nbsp; &nbsp;付&nbsp; &nbsp;款</label>
                <span>
                <span id ="fklx2" style="display: inline;" >
                    <label><input name="fksh.kxlx" type="radio" value="2"
                                  <#if (fksh.kxlx)?? && fksh.kxlx==2>checked</#if> style="vertical-align: middle;"/>应&nbsp; &nbsp;付&nbsp; &nbsp;款 </label>
                 <span>
            </td>
            <th style="color:#f45212;">内部付款：</th>
            <td>
                <label><input name="fkshNbfk" type="radio" value="2"  required="true"
                              style="vertical-align: middle;" />&nbsp;是</label>
                <label><input name="fkshNbfk" type="radio" value="1"
                              style="vertical-align: middle;" checked="checked" />&nbsp;否 </label>
            </td>

        </tr>
                <input id="fksh_sfje" name="fksh.sfje" type="hidden"  class="easyui-numberbox input-text"
                       data-options="precision:4,min:0"  readonly="true"
                       validType="fax" style="width:152px;" value="${(fksh.sfje?string("0.00"))!''}"/>
        <tr>
            <th style="color:#f45212;">款项用途：</th>
            <td>
                <input idVal="fksh_kxyt_id" name="fksh.kxyt.id" class="input-text" type="text"
                       required="true" value="${(fksh.kxyt.id)!'132'}"/>
            </td>
            <th>申报公司：</th>
            <#--<td colspan="3">-->
                <#--<input id="fksh_sbgs_id" name="fksh.sbgs.id" type="text" class="input-text"-->
                       <#--value="<#if fksh??>${(fksh.sbgs.id)!}<#else>${(zggsId)!}</#if>"/>-->
            <#--</td>-->
            <td>
            <input id="fksh_sbgs_id"  type="hidden" name="fksh.sbgs.id" class=" input-text" value="${(fksh.sbgs.id)!}"
                    >
             <input type="text"  class=" input-text" value="${(fksh.sbgs.jc)!} " readonly="readonly"
                >
            </td>
        </tr>
        <tr>
            <th>申报部门：</th>
            <td>
                <#--<input type="hidden" id="fksh_sbbm"-->
                       <#--value="<#if fksh??>${(fksh.sbbm.id)!}<#elseif gsId!=zggsId>${(gsId)!}</#if>"/>-->
                <#--<input id="fksh_sbbm_id" name="fksh.sbbm.id" type="text" class="easyui-combobox input-text"-->
                       <#--data-options="valueField:'id',textField:'jc'" value=""/>-->
            <input type="hidden" name="fksh.sbbm.id" class=" input-text" value="${(fksh.sbbm.id)!}"
                    >
                <input type="text"  class=" input-text" value="${(fksh.sbbm.jc)!}"
                       readonly="readonly" >
            </td>
            <th>申&nbsp;报&nbsp;&nbsp;人：</th>
            <td>
                <#--<input type="hidden" id="fksh_sbr"-->
                       <#--value="<#if fksh??>${(fksh.sbr.id)!}<#else>${(yg.id)!}</#if>"/>-->
                <#--<input id="fksh_sbr_id" name="fksh.sbr.id" type="text" class="easyui-combobox input-text"-->
                       <#--data-options="valueField:'id',textField:'xm'" value=""/>-->
                    <input type="hidden" name="fksh.sbr.id" class=" input-text" value="${(fksh.sbr.id)!}"
                           >
                    <input type="text"  class=" input-text" value="${(fksh.sbr.xm)!}"
                           readonly="readonly" >
            </td>
        </tr>
        <tr>
            <th>备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</th>
            <td>
                <textarea style="width:626px;" rows="2" class="textarea" name="fksh.bz">${(fksh.bz)!}</textarea>
            </td>
        </tr>
    </table>
        </div>
        <div title="付款单明细">
            <div id="jkd_toolbar">
                <div class="PTools">
                    <ul class="niu">
                         <li><a id="btn_jkd_add" href="javascript:void(0);" plain="true">新增</a></li>
                         <li><a id="btn_jkd_del" href="javascript:void(0);" class="del" plain="true">删除</a></li>
                    </ul>
                </div>
            </div>
            <table id="jkd_grid">
            </table>
        </div>
    </div>
</form>

